Skip to content

Conversation

einalien
Copy link
Owner

@einalien einalien commented Nov 1, 2026 •

Summary

Fixes the TEST infrastructure planning workflow by providing the required OpenTofu input variables.

The previous deployment workflow failed because required variables were unavailable in GitHub Actions.

Changes

  • Add deployment.tfvars files for both TEST infrastructure stacks:
    • environments/test/network
    • environments/test/frontend
  • Update .gitignore to allow version-controlled deployment.tfvars files while keeping local variable files ignored.
  • Update deploy.yml to explicitly load deployment.tfvars during planning.
  • Supply admin_cidr through a GitHub environment secret.
  • Supply ssh_key_name through a GitHub environment variable.
  • Add preflight checks for required variables and deployment configuration files.
  • Preserve existing OpenTofu planning, state locking, and exit-code handling.

Verification

  • Existing Kubernetes authentication and connectivity checks passed.
  • Verified access to both TEST remote-state stacks.
  • Confirmed that deployment variable files contain no credentials or private administrative CIDRs.
  • Verify successful TEST network planning.
  • Verify successful TEST frontend planning.
  • Review any proposed infrastructure changes.

Next Steps

  • Resolve any unexpected infrastructure changes.
  • Implement automated TEST network and frontend deployments.
  • Extend deployment automation to STAGE and PROD.
  • Configure manual approval for PROD deployments.
  • Implement selective and full infrastructure destruction.

Notes

This PR fixes missing input variables for OpenTofu planning.

Sensitive configuration remains outside version control and is supplied through GitHub Actions secrets.

No infrastructure resources are created, modified, or destroyed by this workflow.

@einalien einalien added the bug Something isn't working label Nov 1, 2026
@einalien einalien self-assigned this Nov 1, 2026
@einalien einalien merged commit 991dd69 into main Nov 1, 2026
1 check passed
@einalien einalien deleted the fix/test-plan-variables branch November 1, 2026 19:33
Sign in to join this conversation on GitHub.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant